package priv.yiyuan.example.design.facade;

/**
 * Word转换HTML
 * <p>
 * 策略模式-具体策略
 *
 * @author YiYuan
 * @data 2025/9/12
 * @apoNote
 */
public class WordToHtmlStrategy implements DocumentConversionStrategy {

    @Override
    public String convert(String filePath) {
        System.out.println("正在将Word文档 " + filePath + " 转换为HTML...");

        return "<html><body><h1>Word Document: " + filePath + "</h1><p>Converted from Word.</p></body></html>";

    }
}
